﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KingRoad.EPM.SafetyManagementBLL.Domain;
using KingRoad.EPM.SafetyManagementEntity.Model;
using KingRoad.EPM.SafetyManagementDAL.BfUserService;
using Unis.Framework.Core.Utility;

namespace KingRoad.EPM.SafetyManagementBLL.UIRules
{
    public class BfUserUIRule
    {
        private readonly IBfUserService bfUserService;

        public BfUserUIRule(IBfUserService _bfUserService)
        {
            bfUserService = _bfUserService;
        }

        public List<BF_USER_Domain> GetBfUserInfoByName(string userName)
        {
            var list = bfUserService.GetEntityListByName(userName);

            var domainList = list.CopyDataTo<BF_USER, BF_USER_Domain>();

            return domainList;
        }
    }
}
